Skip to content

gh-149694: Fix missing docstring on asyncio.iscoroutinefunction#149695

Closed
deadlovelll wants to merge 1 commit into
python:mainfrom
deadlovelll:corofunc-doc
Closed

gh-149694: Fix missing docstring on asyncio.iscoroutinefunction#149695
deadlovelll wants to merge 1 commit into
python:mainfrom
deadlovelll:corofunc-doc

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

gh-149694: Fix missing docstring on asyncio.iscoroutinefunction

The docstring in asyncio.iscoroutinefunction is currently dead code: it follows an import warnings statement, so Python does not treat it as docstring.

Before:

  >>> import asyncio
  >>> asyncio.iscoroutinefunction.__doc__ is None
  True

After:

  >>> asyncio.iscoroutinefunction.__doc__
  'Return True if func is a decorated coroutine function.'

The fix is a one-line reorder: move import warnings below the docstring.

@bedevere-app

bedevere-app Bot commented May 11, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz

picnixz commented May 11, 2026

Copy link
Copy Markdown
Member

We are in the process of removing this function. So, this PR should be opened against 3.15 instead (I'm closing it because it's easier to recreate a branch from 3.15 rather than rebasing)

@picnixz picnixz closed this May 11, 2026
@deadlovelll

Copy link
Copy Markdown
Contributor Author

We are in the process of removing this function. So, this PR should be opened against 3.15 instead (I'm closing it because it's easier to recreate a branch from 3.15 rather than rebasing)

Okay, i'll recreate this for 3.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants